home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 2005 Utilities
/
CHIP Utilities 2005.7z
/
CHIP Utilities 2005.iso
/
images
/
freedos.img
/
LEVEL3
/
AUTORUN3.CAB
/
Bin
/
Autorun9.bat
Wrap
DOS Batch File
|
2005-01-16
|
1KB
|
42 lines
@if ""=="%debug%" echo off
for %%i in (-? -h -H) do if "%%i"=="%1" goto _help0
if "/h"=="%1" goto _help0
if "/H"=="%1" goto _help0
if "/?"=="%1" goto _help0
for %%i in (1 2 3) do if "%%i"=="%1" goto _start
goto _help0
:_start
if not exist %ramdrv%\etc\autorun%1.bat goto _help
type %ramdrv%\etc\autorun%1.bat >%tmp%\_autorun.bat
shift
call %tmp%\_autorun.bat %1 %2 %3 %4 %5 %6 %7 %8
goto _end
:_help0
echo.
echo AUTORUN?: auto-launches '%srcdrv%\etc\autorun?.bat'
echo.
echo Make a batch-file autorun?.bat with your
echo commands and put it in dir '%srcdrv%\etc\'.
echo Then put this CAB in Level ?.
echo.
echo Substitute 1, 2 or 3 for '?'
echo.
@rem pause
goto _end
:_help
echo.
echo AUTORUN%1: auto-launches '%srcdrv%\etc\autorun%1.bat'
echo.
echo Make a batch-file autorun%1.bat with your
echo commands and put it in dir '%srcdrv%\etc\'.
echo Then put this CAB in Level %1.
echo.
@rem pause
goto _end
:_end
for %%i in (%tmp%\_autorun.*) do del %%i